<%@ include file="/html/portlet/ext/registration/init.jsp" %>

<%
String tabs1 = ParamUtil.getString(request, "tabs1", "College");
String tabs2 = ParamUtil.getString(request, "tabs2", "New");

PortletURL tabs2URL = renderResponse.createRenderURL();
tabs2URL.setParameter("struts_action", "/ext/registration/viewRegistration");
tabs2URL.setParameter(Constants.CMD, "campus-subtab"); 
tabs2URL.setParameter("tabs1", tabs1);
tabs2URL.setParameter("tabs2", tabs2);
%>
<liferay-util:include page="/html/portlet/ext/registration/campus/tabs1.jsp" />

<c:choose>
	<c:when test='<%= tabs1.equals("College") %>'>
	
			<liferay-ui:tabs
			names="New,Approved,Pending,Rejected"
			param="tabs2"
			url="<%= tabs2URL.toString() %>"
		/>	
		 <%@ include file="/html/portlet/ext/registration/campus/collegeList.jsp" %>
	</c:when>
	<c:when test='<%= tabs1.equals("Student") %>'>
	
			<liferay-ui:tabs
			names="New,Approved,Pending,Rejected"
			param="tabs2"
			url="<%= tabs2URL.toString() %>"
		/>	
		 <%@ include file="/html/portlet/ext/registration/campus/collStudentList.jsp" %>
	</c:when>
	
	<c:when test='<%= tabs1.equals("Staff") %>'>
			<liferay-ui:tabs
			names="New,Approved,Pending,Rejected"
			param="tabs2"
			url="<%= tabs2URL.toString() %>"
		/>	
		 <%@ include file="/html/portlet/ext/registration/campus/staffList.jsp" %>
	</c:when>
	<c:when test='<%= tabs1.equals("Others") %>'>
			<liferay-ui:tabs
			names="New,Approved,Pending,Rejected"
			param="tabs2"
			url="<%= tabs2URL.toString() %>"
		/>	
		 <%@ include file="/html/portlet/ext/registration/campus/collOthersList.jsp" %>
	</c:when>
</c:choose>

